package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 短信发送记录详情业务对象 sms_push_record_details
 *
 * @author ruoyi
 * @date 2024-04-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SmsPushRecordDetailsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * phone
     */
    @NotBlank(message = "phone不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 模板参数
     */
    @NotBlank(message = "模板参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateParam;

    /**
     * 模板ID
     */
    @NotBlank(message = "模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String templateCode;

    /**
     * service_type
     */
    @NotNull(message = "service_type不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long serviceType;

    /**
     * 签名
     */
    @NotBlank(message = "签名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signName;

    /**
     * 回执ID
     */
    @NotBlank(message = "回执ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizId;

    /**
     * 回执Code
     */
    @NotBlank(message = "回执Code不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responseCode;

    /**
     * 回执信息
     */
    @NotBlank(message = "回执信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responseMsg;

    /**
     * 发送短信内容。和模板2选一
     */
    @NotBlank(message = "发送短信内容。和模板2选一不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sms;


}
